package org.zjx.analysis.analyze.tap;


import org.zjx.command.util.ImageUtil;
import org.zjx.window.window.IWindow;

import java.awt.*;
import java.awt.image.BufferedImage;
import java.util.Collections;

public class DTJWTabAnalysis extends BaseTabAnalysis {

    public DTJWTabAnalysis(IWindow window) {
        super("大唐境外", window);
    }

    @Override
    public Rectangle getContentArea() {
        return ImageUtil.createRect(10, 80, 776, 223);
    }

    @Override
    protected void initResources() {

    }

    @Override
    public Rectangle closeArea() {
        return null;
    }

    @Override
    public Rectangle getOriginBounds() {
        return ImageUtil.createRect(5, 145, 793, 428);
    }

    @Override
    public Rectangle getRefImageArea() {
        return ImageUtil.createRect(366, 24, 421, 37);
    }

    @Override
    public BufferedImage getRefImage() {
        BufferedImage bufferedImage = ImageUtil.createImage("iVBORw0KGgoAAAANSUhEUgAAADgAAAAOCAYAAAB6pd+uAAAEp0lEQVR4Xo1WCVNTVxR+f6wD2CqlWJWYEBZhIiAMaekUqQM6FDQ4WoEQlhICYQhrqWyyCERAKMMmUkHWsom0tFTCuJSKFRVO3zmPe3lLFL+Zb+6537n33HPu8hLBR+8Eb0y80g6pWd0K7RPd4cwvG4GM3D7w0Tk0PsajoS5IsnQqNIxvjK+F7OIBTS5y+oe7IDb5lkb3NTgh3dqj0QW1wDi7uAGepy81upw5zkGYXdiAuUUPJ8PcIuoHvoezf8Op6BoqBhNBYAy0RyfWiM9evCJ9RozJtKrGCcWaBa4RGqOP/Yl43FRJOhbNYsop+BpKwRvnljyw+XRboaknI7ZfveHJjE78AfNLUpFoyzl4fxVORFWBr94BFlsvTwZvCc5F7O3hvDXY+vf1fow1qKgfV+TQM7BMPjmqmx5C/KUWstV1CIERLni5vQO7u3vwTiRrGbAv55u3u5CQ2gJ++hLyXy+Qkj0MMd/VU3FfmlzQ1b9I2rdpbXAhowOyivrh9c472BGJ9qZ4cxCZRQNwNa+XEsX12Jq9g8u8v7b+An4ZeQzmi83kw5NkPqRwxFACje3T0N4zryCDWm/r/g0MsTWULCItuwu+z7pDhSKdNaOkX8vv5UTUtU3SnCu2bh57fWML/nqyxfvvw/FIFyUbfb6B+rhZ8oLt5SO8QESoufagQD+DA7yRQa0jMVFW4FvxRD8WTR3T+1dUeoNo+4c7YXr+CT0HNVFHP1sXbxCe8smocuoHRJRSHFPiTTBfaiJ74dEmjWNzBJasnLhDDKmZbo1fXuCNwj6ITbrJmZbZSXqMaDMiBu6tQEBosaZAvAEILL6hfYoT+wi8HTjOEFdF/a9TpZPqG34ENucAjxN/USowMLKM2lzRh7rgpysENfENPHu+LX4wNmiw2s+IyMiREjwM6VmdfB6bI7ffB/Sr103YPy3EwrKHNHOKdH3RvtUxxW1Nga5a6Q1FJ/4MwecqyG5xzyjG+AT9SEQkpjXDUWMR6KLKQB/jgsiEGtINMWVE1PxDHHwOkhWFtsV6h+ykyy1wPv2A2EegX50j8oKllfxYrLrAY0bpdqFP8AvKB0ZrkfRBqK4f45qjfJC0kqohriEDQuykmxKqqT0MaTfa+dwMq1uhfwjB4ibJ10V+ppc2d239OdfMyXWksb6/sZBaXmBt0680YHhsRROwb2iJfK3uKbFvIyalN5J2zJBP7Q8FXRBkcnglor51nOad/aaCPgKIFvckj7e04iGGxpWTj61ttd+FyK8qeR839p+t/2jMiYhirqsLZBQCwwrhT3EnEP3Di3xBNTvuztAYfJuYdF3rg/2ANmovZ92GT3U5XoloaJMKvJbrhuXHHgiPx5OxUYvrIlKuNovXWvoDccbs4rEr6+6RnZIh/VtBGM+VKvIzJ9eSrs5bKK0ZIoe9rF/h8D2Zrelfz5O+kJ09MzA2sQoPJn8n/WNgyb5NYxl1piKFP7uwi6+lBhZ+Okr6zbs/viqeYoGmkJhE6SurzltAITA0X7H4h/i5MQ/8Tim1I0FWOC0mrI9ygP6sXcMvQrzHT7Y0QlhcqUZHBkcXi+/bpcgtMKxAM05Ob7H+BzXqxWEDpdklAAAAAElFTkSuQmCC");
        return ImageUtil.makeColorsTransparent(bufferedImage, Collections.singletonList(Color.WHITE));
    }
}
